package dao;

import java.nio.channels.SeekableByteChannel;
import java.util.List;

import vo.GoodsInfo;
import vo.SellMainInfo;
import vo.SellSubInfo;
import vo.VipInfo;

public interface ISaleDAO {
	public SellMainInfo saveMainOrder(SellMainInfo sellMainInfo);

	public SellSubInfo saveSubInfo(SellSubInfo sellSubInfo);

	public SellSubInfo updateSubInfo(SellSubInfo sellSubInfo);

	public SellMainInfo updateMainInfo(SellMainInfo sellMainInfo);

	public List getSubOrder(int page, int rows);

	public List getSubOrder(String saleOrderNo);

	public List getMainOrder(int page, int rows);

	public SellMainInfo findMainOrderBySaleOrderId(String saleOrderId);

	public SellSubInfo findSubOrderById(int saleOrderId);

	public SellSubInfo findSubOrderBygoods(int goodsid, String orderNo);

	public int getTotalNum();

	public void deleteSub(SellSubInfo sellSubInfo);

	public void deleteMain(SellMainInfo sellMainInfo);

	public boolean checkSimilar(int id, String orderNo);

	public void clearMainInfo();

	public void clearSubInfo();

}
